


package loganosystem.datos;

import loganosystem.contrato.Entidad;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

/**
 *
 * @author loreh
 */
public class PagosDatos {

    public void save(Entidad Pagos){
       SessionFactory sessionFactory = new Configuration() {}.configure().buildSessionFactory();
       Session session = sessionFactory.openSession();
       session.save(Pagos);
       session.flush();
       session.close();
    }
}